package top.lyjwn.todo.weinxin.param;

import java.io.InputStream;

public class WXPayParam {

    /**
     * api密钥,账户设置-->API安全-->密钥设置
     */
    private   String apiKey;
    /**
     * 微信支付分配的appid
     */
    public  String appid;

    /**
     * 商户私钥（商户API证书apiclient_key.pem文件内容） privateKey
     */
    //public final static PrivateKey PRIVATE_KEY = PemUtil.loadPrivateKey(SSLUilt.class.getResourceAsStream("/apiclient_key.pem"));

    /**
     * 微信支付的,ca证书
     */
    private  InputStream sslKey;

    /**
     * 微信支付的,ca证书,16进制证书码
     */
    private  String certCode;

    /**
     * 商户号
     */
    private  String mchId;

    /**
     * 系统域名
     */
    private  String domainName;

    /**
     * 授权域名
     */
    private  String authDomainName;

    /**
     * 商户API证书序列号
     */
    private  String mchSeriaLno;


    /**
     * 平台证书（通过CertificateDownloader下载的证书文件内容）
     */
    private  String certificate;


    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public InputStream getSslKey() {
        return sslKey;
    }

    public void setSslKey(InputStream sslKey) {
        this.sslKey = sslKey;
    }

    public String getCertCode() {
        return certCode;
    }

    public void setCertCode(String certCode) {
        this.certCode = certCode;
    }

    public String getMchId() {
        return mchId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public String getDomainName() {
        return domainName;
    }

    public void setDomainName(String domainName) {
        this.domainName = domainName;
    }

    public String getAuthDomainName() {
        return authDomainName;
    }

    public void setAuthDomainName(String authDomainName) {
        this.authDomainName = authDomainName;
    }

    public String getMchSeriaLno() {
        return mchSeriaLno;
    }

    public void setMchSeriaLno(String mchSeriaLno) {
        this.mchSeriaLno = mchSeriaLno;
    }

    public String getCertificate() {
        return certificate;
    }

    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }
}
